﻿@model List<ServeNHL.Models.VCLViewModel>

@{
    ViewBag.Title = "VCLDashboard";
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<div class="row">
    <div class="spacer7"></div>
    <div class="header col-lg-12 col-md-12 col-sm-12 col-xs-12 ">

        <div class="signupLogo">Manage Volunteer Control Lists</div>
    </div>
</div>

<div class="spacer14"></div>
<table class="table-responsive table-striped" align="center">
    <thead>
        <tr>
            <td colspan="6" class="left"><input type="button" title="Add Volunteer Control List" value="Add Volunteer Control List" onclick="location.href='@Url.Action("AddVCL", "Events")'" </td>
           
        </tr>
      
        <tr>
            <th>Name</th>
            <th>Number of Members</th>
            <th>Status</th>
            <th>View</th>
            <th>Edit</th>
            <th>Delete</th>
        </tr>
    </thead>

    <tfoot>
        <tr>
            <td colspan="6" class="left"><input type="button" title="Add Volunteer Control List" value="Add Volunteer Control List" onclick="location.href='@Url.Action("AddVCL", "Events")'" /></td>
        </tr>
        <tr>
            <th>Name</th>
            <th>Number of Members</th>
            <th>Status</th>
            <th>View</th>
            <th>Edit</th>
            <th>Delete</th>
        </tr>
    </tfoot>

    <tbody id="eventDashboardSummary">

        @if (Model != null) {
        foreach (var vcl in Model)
        {
            <tr>
                <th>@Html.Raw(vcl.VCL.LIST_DESC)</th>
                <th>@Html.Raw((vcl.VCLMembers != null) ? vcl.VCLMembers.Count() : 0)</th>
                <th>@Html.Raw(vcl.VCL.STATUS)</th>
                <td>View</td>
                <td>Edit</td>
                <td>Delete</td>
            </tr>
        }
        }

    </tbody>
</table>
